package com.example.administrator.demoa;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

class MyReceiver extends BroadcastReceiver{
    private InOnTimeChangeListener listener;

    public MyReceiver(InOnTimeChangeListener listener) {
        this.listener = listener;
    }

    @Override
    public void onReceive(Context context, Intent intent) {
        String time = intent.getStringExtra("TIME");
        listener.show(time);
    }
}
